package com.iemp.web.controller.base;

import com.github.pagehelper.PageInfo;
import com.iemp.config.consts.ApiConsts;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

public interface IPageController<E> {
    @GetMapping(ApiConsts.ALL_BY_PAGE)
    PageInfo<E> findAllByPage(@RequestParam(defaultValue = "1") int pageNum, @RequestParam(defaultValue = "3") int pageSize);
}
